import java.util.HashSet;

public class test {
    public static void main(String[] args) {
        HashSet<Integer> set=new HashSet<>();
        int x=1;
       while (x<=3) {
           set.add(x);
           Integer[] arr = set.toArray(new Integer[3]);
           System.out.println(arr[0]);
           x++;
       }
    }
}
